package org.example.day06.util;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;

/**
 * 有关数据库的功能模块的封装
 */
public class JDBCUtil {

    static ComboPooledDataSource dataSource;

    static {
        dataSource = new ComboPooledDataSource();
    }

    public static DataSource getDataSource(){

        return dataSource;
    }
}
